import request from '@/utils/request'
// 查询行政区域列表
export function listStrativeArea(query) {
  return request({
    url: '/subsidy/strativeArea/listTree',
    method: 'get',
    params: query
  })
}

// 查询行政区域详细
export function getStrativeArea(id) {
  return request({
    url: '/subsidy/strativeArea/' + id,
    method: 'get'
  })
}

// 新增行政区域
export function addStrativeArea(data) {
  return request({
    url: '/subsidy/strativeArea',
    method: 'post',
    data: data
  })
}

// 修改行政区域
export function updateStrativeArea(data) {
  return request({
    url: '/subsidy/strativeArea',
    method: 'put',
    data: data
  })
}

// 删除行政区域
export function delStrativeArea(id) {
  return request({
    url: '/subsidy/strativeArea/' + id,
    method: 'delete'
  })
}
